<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../common/common_java.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<%@include file="../common/common_meta.jsp" %>  
    	<meta name="keywords" content="投票,投票网,大众,民意,调查,">
		<%@include file="../common/common_css.jsp"%>
   		 <title>新增友情链接-大众投票</title>
	</head>
	<body>
	   <jsp:include page="../common/common_header.jsp">
			<jsp:param name="active" value="vote_user"/>
		</jsp:include>
	    <section class="container">
	    <h3 class="mt-10">新增友情链接</h3>
        <div class="line"></div>
        <div class="responsive">
            <div class="row cl">
                <!-- left -->
				<div class="col-md-2">
	                <jsp:include page="../vote/sidebar.jsp">
						<jsp:param name="active" value="link_add"/>
					</jsp:include>
                </div>
                <!-- right -->
   				 <div class="col-md-10">
                    <!--panel 1 start -->
                    <div class="panel shadow panel-default radius mt-20">
                        <div class="panel-body">
                            <h4>新增友情链接</h4>
                            <div class="line"></div>
                            <!--form start-->
                            <form action="${ctx}/link/save" method="post" class="form form-horizontal responsive" id="defaultform">
                                <div class="row cl">
                                    <label class="form-label col-xs-2">网站名称：</label>
                                    <div class="formControls col-xs-5">
                                        <input type="text" class="input-text" placeholder="1~10个字符" name="name" maxlength="10" datatype="*1-10" nullmsg="网站名称不能为空！"/>
                                    </div>
                                    <div class="col-xs-5"></div>
                                </div>
                                <div class="row cl">
                                    <label class="form-label col-xs-2">网址：</label>
                                    <div class="formControls col-xs-5">
                                        <input type="text" class="input-text" placeholder="http://" name="site" maxlength="40" datatype="url" nullmsg="网址不能为空！"/>
                                    </div>
                                    <div class="col-xs-5"></div>
                                </div>
                                <div class="row cl">
                                    <label class="form-label col-xs-2">网站分类：</label>
                                    <div class="formControls col-xs-5">
                                        <span class="select-box">
                                            <select class="select" size="1" name="linkClass" datatype="*" nullmsg="请选择分类！">
                                                <option value="" selected>请选择分类</option>
                                                <c:forEach items="${linkClassList}" var="lc">
	                                                <option value="${lc.id}" >${lc.name}</option>
                                                </c:forEach>
                                            </select>
                                        </span>
                                    </div>
                                    <div class="col-xs-5"> </div>
                                </div>
                                <div class="row cl">
                                    <label class="form-label col-xs-2">网站简介：</label>
                                    <div class="formControls col-xs-5">
                                        <textarea name="linkDesc" cols="" rows="" class="textarea"  placeholder="请填写网站简介" datatype="*10-500" maxlength="500"  nullmsg="网站简介不能为空！" onKeyUp="textarealength(this,500)"></textarea>
                                        <p class="textarea-numberbar"><em class="textarea-length">0</em>/500</p>
                                    </div>
                                    <div class="col-xs-5"> </div>
                                </div>
                                <div class="row cl">
                                    <div class="col-xs-10 col-xs-offset-2">
                                        <input class="btn btn-primary" type="submit"  id="submitBtn" value="&nbsp;&nbsp;提交&nbsp;&nbsp;" >
                                    </div>
                                </div>
                            </form>
                            <!--form end-->
                        </div>
                    </div>
                    <!--panel 1 end -->
                </div>
            </div>
        </div>
	    </section>
		<%@include file="../common/common_footer.jsp" %> 
		<%@include file="../common/common_js.jsp" %>
		<script type="text/javascript" src="${jsBase}/link/add.js" ></script>
	</body>
</html>